<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible">
	<title>v-html指令</title>
</head>
<body>
	<!-- 2.html结构 -->
	<div id="app">
		<p v-html="content"></p>
		<p v-text="content"></p>
	</div>
	<!-- 1.开发环境版本，包含了有帮助的命令行警告 -->
	<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
	<script type="text/javascript">
		// 3.创建Vue实例
		var app = new Vue({
			el:"#app",
			data:{
				//content:"黑马程序员"
				content:"<a href='http://www.itheima.com'>黑马程序员</a>"
			}
		})
	</script>
</body>
</html>